<form method="POST" action="?pane=gerrit_servers_admin&action=add-gerrit-server">
    {{# csrf_token }}
        {{> csrf_token_input }}
    {{/ csrf_token }}
    <div id="modal-add-gerrit-server" class="tlp-modal" role="dialog" aria-labelledby="modal-big-content-label">
        <div class="tlp-modal-header">
            <h1 class="tlp-modal-title" id="modal-big-content-label">
                <i class="fa fa-plus tlp-modal-title-icon"></i> {{ gerrit_add_server }}
            </h1>
            <div class="tlp-modal-close" data-dismiss="modal" aria-label="Close">
                &times;
            </div>
        </div>
        <div class="tlp-modal-body">
            <div class="tlp-form-element">
                <label class="tlp-label" for="host-required">{{ gerrit_label_host }} <i class="fa fa-asterisk"></i></label>
                <input type="text" class="tlp-input" id="host-required" name="host" placeholder="gerrit.example.com" required />
            </div>

            <div class="tlp-form-element">
                <label class="tlp-label" for="http-port-required">{{ gerrit_label_http_port }} <i class="fa fa-asterisk"></i></label>
                <input type="text" class="tlp-input" id="http-port-required" name="http_port" placeholder="80" maxlength="5" size="6" required />
            </div>

            <div class="tlp-form-element">
                <label class="tlp-label tlp-checkbox">
                    <input type="checkbox" name="use_ssl" value="1"> {{ gerrit_label_use_ssl }}
                </label>
            </div>

            <div class="tlp-form-element">
                <label class="tlp-label" for="ssh-port-required">{{ gerrit_label_ssh_port }} <i class="fa fa-asterisk"></i></label>
                <input type="text" class="tlp-input" id="ssh-port-required" name="ssh_port" placeholder="22" maxlength="5" size="6" required />
            </div>
            <input type="hidden" name="gerrit_version" value="2.8+" />

            <hr class="tlp-modal-separator">

            <div class="tlp-form-element">
                <label class="tlp-label" for="login-required">{{ gerrit_label_login }} <i class="fa fa-asterisk"></i></label>
                <input type="text" class="tlp-input" id="login-required" name="login" placeholder="gerrit"  size="25" required />
            </div>

            <div class="tlp-form-element">
                <label class="tlp-label" for="identity-file-required">{{ gerrit_label_identity_file }} <i class="fa fa-asterisk"></i></label>
                <input type="text" class="tlp-input" id="identity-file-required" name="identity_file" placeholder="/etc/..." required />
            </div>

            <div class="tlp-form-element">
                <label class="tlp-label">{{ gerrit_label_auth_type }}</label>
                <label class="tlp-label tlp-radio">
                    <input type="radio" name="auth_type" value="Digest" checked /> {{ digest }}
                </label>
                <label class="tlp-label tlp-radio">
                    <input type="radio" name="auth_type" value="Basic" /> {{ basic }}
                </label>
            </div>

            <div class="tlp-form-element">
                <label class="tlp-label" for="http-password-required">{{ gerrit_label_http_password }} <i class="fa fa-asterisk"></i></label>
                <input type="password" class="tlp-input" id="http-password-required" name="http_password" placeholder="************" size="40" required />
            </div>

            <hr class="tlp-modal-separator">

            <p class="tlp-text-info">
                {{ gerrit_replication_information }}
            </p>

            <div class="tlp-form-element">
                <label class="tlp-label" for="replication-ssh-key-required">{{ gerrit_label_replication_key }}</label>
                <textarea class="tlp-textarea" id="replication-ssh-key-required" name="replication_key" placeholder="Key..."></textarea>
            </div>

            <div class="tlp-form-element">
                <label class="tlp-label" for="replication-password">{{ gerrit_label_replication_password }} </label>
                <input type="password" class="tlp-input" id="replication-password" name="replication_password" placeholder="************" size="40" />
            </div>
        </div>

        <div class="tlp-modal-footer">
            <button type="button" class="tlp-button-primary tlp-button-outline tlp-modal-action" data-dismiss="modal">
                {{ btn_cancel }}
            </button>
            <button type="submit" class="tlp-button-primary tlp-modal-action">
                <i class="fa fa-plus tlp-button-icon"></i> {{ add_server }}
            </button>
        </div>
    </div>
</form>
